<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			
	/*String k = (String)request.getParameter("k");
	if(k != null && k.equals("logout")){
		request.getSession().invalidate();
	}*/
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />


<link rel="stylesheet" type="text/css" href="style/style.css">
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery.placeholder.js"></script>
<script src="js/login.js"></script>
<style type="text/css">
body {
	TEXT-ALIGN: left !important;
	TEXT-ALIGN: center;
	} /* IE6 子元素居中 */
</style>
</head>

<body>
<div id="login">
	<form action="javascript:loginCheck();" method="post">
		
			<div class="textBox_div" id="userNu">
				<input class="textBox" id="identity" name="userNu" placeholder="账 号"
					type="text" maxlength="8" />

			</div>

			<div class="textBox_div" id="userPassword_div">
				<input id="pw" class="textBox" name="userPassword" placeholder="密 码"
					type="password" maxlength="16" />
			</div>

			<div id="radio_div">
				<input id="student_radio" name="identity_radio" type="radio"
					checked="checked" value="3" onchange="alterTextLength(8);" />学生 <input
					id="staff_radio" name="identity_radio" type="radio" value="2"
					onchange="alterTextLength(4);" />管理员
			</div>

			<div id="remember_div">
				<input id="remB" name="remember" type="checkbox" />下次自动登录
			</div>

			<div id="submit_div">
				<input id="loginButton" class="button_blue" name="submit" value="登 录" type="submit" />
				<p><a href="register/register_main.jsp">学生注册</a></p>
			</div>
		
	</form></div>
	<script>
		$('input[placeholder]').placeholder();
	</script>
</body>
</html>
